package com.xzj.admin.flow.util;

import com.alibaba.fastjson2.JSONObject;
import lombok.extern.slf4j.Slf4j;

/**
 * @program: xzj-admin
 * @ClassName: FlowCommonUtil
 * @description: 公用方法
 * @author: XiaZunJun
 * @create: 2024-09-30 09:09
 */
@Slf4j
public class FlowCommonUtil {

    public static JSONObject buildEdgeAttr() {
        JSONObject attr = new JSONObject();
        JSONObject line = new JSONObject();
        attr.put("line", line);
        JSONObject targetMarker = new JSONObject();
        line.put("stroke", "#A2B1C3");
        line.put("targetMarker", targetMarker);
        targetMarker.put("name", "block");
        targetMarker.put("width", 12);
        targetMarker.put("height", 8);
        return attr;
    }
}
